<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<html lang="en">
<head>
    <meta charset="utf-8">
    <base href="<%=basePath%>">

    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Login Form</title>
    <link rel="stylesheet" href="user/css/style.css">
    <!--[if lt IE 9]>
    <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
<body>

<section class="container">
    <div class="login">
        <h1>用户登录 <span style="text-align:center;padding-top:2px;"><font color="#ff0000">${requestScope["msg"]}</font>
														</span></h1>

        <form method="post" action="${pageContext.request.contextPath }/userServlet">
            <input type="hidden" name="op" value="login"/>
            <p><input type="text" name="username" value="" placeholder="用户名"></p>
            <p><input type="password" name="password" value="" placeholder="密码"></p>
            <p><input type="text" name="verifyCode" placeholder="VerifyCode" style="width: 150px;">
                <%--请求VerifycodeImgServlet--%>
                <img src="${pageContext.request.contextPath}/verifyCode.jpg" alt="verifyCode" width="120px"
                     height="30px" style="vertical-align: middle;"></p>
            <p class="remember_me">
                <label>
                    <input type="checkbox" name="remember_me" id="remember_me">
                    记住密码
                </label>
            </p>
            <p class="submit"><input type="submit" name="commit" value="登录"></p>
        </form>
    </div>
</section>

</body>
</html>
